app.controller('paomadengCtrl',['$scope','$rootScope','$http',function ($scope,$rootScope,$http) {
    var token = localStorage.getItem('token');
    $http({
        method: "POST",
        url: mainUrl+'/md/md-notice!read.action',
        params: {
            'Authorization': token ,
            'qm.flag' : 1
        }
    }).then(
        function(data, status, headers, config){
            /*$scope.content=data.data.items[0].content;*/
            /*for(var i=0;i<data.data.items.length;i++){
                $scope.content+=data.data.items[i].title;
            }*/
            console.log(data)
            var header = data.data.items[0].content;
            $scope.content= header;
$scope.xiangqing = function () {

    mui.init();
    mui.alert(header,'公告','关闭','', 'div');
}
        },function(data, status, headers, config){

        }
    );
}]);
